$data modify entity @n[type=marker,distance=..10,tag=VoidShop] data.shopContents[$(Index)] set from entity @s item.components."minecraft:custom_data".VoidShopSlot.Item.event.buySuccessReplaceTo
$function vs:system/game_ctrol/void_shop/slot/read_items/read_a_slot {index:$(Index),slot:$(id)}
particle dust{color:[0.0,0.0,1.0],scale:1.0} ~ ~ ~ 0.2 0.2 0.2 1 10 normal